const deleteTVModel = require("../models/deleteTV_model")
const Result = require("../beans/result")

function deleteTVlist(value,collectionName, msg, callback) {
    deleteTVModel.deleteTV(value,collectionName, (err, data) => {
        if (err) {
            callback(new Result(err, null, msg[0], 401))
        } else {
            callback(new Result(null, null, msg[1], 200))
        }
    })
}
module.exports = {deleteTVlist}